<template>
  <div>
    {{count}}
<!--<Count :value="count" @input="count = $event"></Count>-->
<!--<Count v-model="count"></Count>-->
<!--    <Count v-model:countValue="count"></Count>-->
    <button @click="count++">点击加</button>
    <Count :countValue="count" @update:countValue="count = $event"></Count>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
    name:"App",
})
</script>

<script lang="ts" setup>
import Count from "./components/Count.vue";
import {ref} from "vue";
const count = ref<number>(1)
</script>

<style scoped>

</style>